import { request } from '@/api/_service'

export function LIST (data) {
  return request({
    url: '/cart_list',
    method: 'get',
    params: data
  })
}

export function ADD (data) {
  return request({
    url: '/add_cart',
    method: 'post',
    data: data
  })
}

export function UPDATE (data) {
  return request({
    url: '/upd_item',
    method: 'post',
    data: data
  })
}

export function DELETE (data) {
  return request({
    url: '/del_cart',
    method: 'post',
    data: data
  })
}

export default {
  LIST,
  ADD,
  DELETE
}
